package cn.nyse.ktc_find.dao;

import cn.nyse.ktc_find.entity.Article;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

public interface ArticleSearchDao extends ElasticsearchRepository<Article, String> {

    Page<Article> findByTitleOrContent(String content, String title, Pageable pageable);
}
